unit Unit2;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls,turniertools;

type
  TForm2 = class(TForm)
    nameE: TEdit;
    Label1: TLabel;
    Anlegen: TButton;
    procedure AnlegenClick(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form2: TForm2;

implementation

{$R *.dfm}

uses Unit1;

procedure TForm2.AnlegenClick(Sender: TObject);
begin
  Form1.tournaments.Append;
  Form1.tournaments.FieldByName('name').Text:=nameE.Text;
  Form1.tournaments.Post;
  close;
end;

end.
